package com.estar.integaration.Parser.Solver;

import com.estar.integaration.entity.moneyEntity.MaterialMoney;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * Author: YJL
 * Date: 2021/12/27 8:42
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MaterialMoneyParents extends MaterialMoney {

  public List<String> parents;


  public MaterialMoneyParents cloneMaterialMoney(MaterialMoney materialMoney){
    this.setId(materialMoney.getId());
    this.setBaseMaterialCode(materialMoney.getBaseMaterialCode());
    this.setAllMoney(materialMoney.getAllMoney());
    this.setStepOneMoney(materialMoney.getStepOneMoney());
    this.setStepTwoMoney(materialMoney.getStepTwoMoney());
    this.setStepThreeMoney(materialMoney.getStepThreeMoney());
    this.setStepFourMoney(materialMoney.getStepFourMoney());
    this.setGroup(materialMoney.getGroup());
    return this;
  }


}
